package com.apes.fn.server.vehicleFile.model;

/**
 * @program: apes-server
 * @description: 健康档案汽油类型
 * @author: czs
 * @create: 2023年11月6日 09:33:24
 **/
public enum VehicleFileFuelTypeEnum {

    qiyou("A", "汽油"),caiyou("B", "柴油"),dian("C", "电（以电能驱动的汽车）"), hunheyou("C", "混合油"),
    tianranqi("E", "天然气"),yehuashiyouqi("F", "液化石油气"), jiachun("L", "甲醇"), yichun("M", "乙醇"),
    taiyangneng("N", "太阳能"),hunhedonli("O", "混合动力(电动机作为辅助驱动的机动车)"), qing("P", "氢"),shengwuranliao("Q", "生物燃料"),
    erjiami("R", "二甲醚"),wu("Y", "无（仅限全挂车等无动力的）"),qita("Z", "其他"),wushuju("无", "无");

    public String getCode() {
        return code;
    }

    private String code;

    private String name;

    VehicleFileFuelTypeEnum(String code, String name) {
        this.code = code;
        this.name = name;
    }

    public static VehicleFileFuelTypeEnum JekunFuelTypeChange(String s){
        if (s==null)return VehicleFileFuelTypeEnum.wushuju;
        //增程式电动
        //插电式混动
        //柴油
        //氢燃料
        //汽油
        //汽油/乙醇
        //汽油/压缩天然气(CNG)
        //汽油/天然气(LNG/CNG)
        //汽油/液化石油气(LPG)
        //油电混合
        //液化石油气(LPG)
        //甲醇
        //电力
        switch (s){
            case "压缩天然气(CNG)":
                return VehicleFileFuelTypeEnum.tianranqi;
            case "插电式混动":
            case "增程式电动":
            case "油电混合":
                return VehicleFileFuelTypeEnum.hunhedonli;
            case "柴油":
                return VehicleFileFuelTypeEnum.caiyou;
            case "氢燃料":
                return VehicleFileFuelTypeEnum.qing;
            case "汽油":
                return VehicleFileFuelTypeEnum.qiyou;
            case "液化石油气(LPG)":
                return VehicleFileFuelTypeEnum.yehuashiyouqi;
            case "甲醇":
                return VehicleFileFuelTypeEnum.jiachun;
            case "电力":
                return VehicleFileFuelTypeEnum.dian;
            case "汽油/乙醇":
            case "汽油/压缩天然气(CNG)":
            case "汽油/天然气(LNG/CNG)":
            case "汽油/液化石油气(LPG)":
                return VehicleFileFuelTypeEnum.hunheyou;
            default:
                return VehicleFileFuelTypeEnum.qita;
        }
    }


}
